import Vue from 'vue'
import Router from 'vue-router'

// 页面
import index from './views/index.vue'
// list 页面
import List from './views/List.vue'

Vue.use(Router)

export default new Router({

    mode: 'history',
    base: process.env.BASE_URL,
    routes: [{
        path: '/',
        name: 'Index',
        component: index,
        children: [{
            path: '/list',
            component: List
        }]
    }]
})